package com.moxigua.iotbox.bean;

/**
 * Created by Junerver on 2017/6/6.
 * Feature: 标签与值为两个泛型
 * Updated:
 */

public class MqttAction<T, E> extends BaseAction {

    private T tags;             //标签
    private E value;              //传递的值



    public E getValue() {
        return value;
    }

    public void setValue(E value) {
        this.value = value;
    }

    public T getTags() {
        return tags;
    }

    public void setTags(T tags) {
        this.tags = tags;
    }

    @Override
    public String toString() {
        return "MqttAction{" +
                "timestamp=" + getTimestamp() +
                ", metric='" + getMetric() + '\'' +
                ", value=" + value +
                ", tags=" + tags +
                '}';
    }
}
